﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ERP.WH.Models.Entity;

[Table("wh_inventory+movement_detail")]
public partial class WhInventoryMovementDetail
{
    [Key]
    public long DetailId { get; set; }

    public long MovementId { get; set; }

    public long MaterialId { get; set; }

    public string? BatchNo { get; set; }

    public decimal Quantity { get; set; }

    /// <summary>
    /// 来源库存ID
    /// </summary>
    public long? FromInventoryId { get; set; }

    /// <summary>
    /// 目标库存ID
    /// </summary>
    public long? ToInventoryId { get; set; }

    /// <summary>
    /// 0-待处理, 1-已完成
    /// </summary>
    public sbyte? Status { get; set; }

    public string? Remark { get; set; }

    public DateTime? CreatedAt { get; set; }

    public DateTime? UpdatedAt { get; set; }

    public sbyte? IsDelete { get; set; }
}
